package com.demo.core.model;

import com.demo.core.model.support.SimpleBaseModel;

/**
 * 目录访问许可 model类
 */
public class FolderPermission extends SimpleBaseModel implements java.io.Serializable {

	/**
	 * 序列化ID
	 */
	private static final long serialVersionUID = -3405885814349690338L;
	/**
     * 状态，目录正常状态
     */
    public static final String STATUS_NORMAL = "status.normal";
    /**
     * 状态，目录隐藏状态，暂时不用，保留
     */
    public static final String STATUS_HIDE = "status.hide";

	/**
	 * 目录外键ID
	 */
	private Long folderId;
	/**
	 * 会员安全标识ID
	 */
	private Long sid;
	/**
	 * 许可类型：黑盒/白盒
	 * (可以实现完全公开、注册会员可见、角色可见、指定会员可见等)
	 */
	private String type;
	/**
	 * 对SID所授予的权限信息
	 * (如果是黑盒，则MASK是不允许操作的权限，如果是白盒，MASK是允许的操作)
	 */
	private int mask;
	/**
	 * 标记字段，当前权限是否已经授予了SID
	 */
	private String granting;
	/**
	 * 优先级
	 */
	private int priority;
	
	public Long getFolderId() {
		return folderId;
	}
	public void setFolderId(Long folderId) {
		this.folderId = folderId;
	}
	public Long getSid() {
		return sid;
	}
	public void setSid(Long sid) {
		this.sid = sid;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public int getMask() {
		return mask;
	}
	public void setMask(int mask) {
		this.mask = mask;
	}
	public String getGranting() {
		return granting;
	}
	public void setGranting(String granting) {
		this.granting = granting;
	}
	public int getPriority() {
		return priority;
	}
	public void setPriority(int priority) {
		this.priority = priority;
	}
}